]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
panel: Don't completely hide AppMenuButton when invisible
authorJonas Dreßler <verdre@v0yd.nl>
Mon, 1 Mar 2021 09:03:50 +0000 (10:03 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 9 Mar 2021 13:15:09 +0000 (13:15 +0000)
We already set the AppMenuButton to be non-reactive and transparent when
we hide it. Hiding it completely using clutter_actor_hide() will
additionally make it no longer affect layout and thus queue a relayout.

Since we hide the appMenu in the overview and we want to avoid
relayouting the panel when entering and leaving the overview, don't
completely hide the AppMenuButton to avoid queueing this relayout.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1733>

js/ui/panel.js

index cfde06e2846141a6e8e1f2d822f783db80ed2f07..8ca5d038d07219ae4e167a4c9823f8b57e983f1e 100644 (file)
@@ -222,7 +222,6 @@ var AppMenuButton = GObject.registerClass({
 
         this._visible = true;
         this.reactive = true;
-        this.show();
         this.remove_all_transitions();
         this.ease({
             opacity: 255,
@@ -242,7 +241,6 @@ var AppMenuButton = GObject.registerClass({
             opacity: 0,
             mode: Clutter.AnimationMode.EASE_OUT_QUAD,
             duration: Overview.ANIMATION_TIME,
-            onComplete: () => this.hide(),
         });
     }